const isDev = (process.env.DEV == 'true') ? true : false;
const isTest = (process.env.TEST == 'true') ? true : false;
const url = 'mongodb://localhost:27017/';// 本地 mongodb 连接地址
const dbname = 'espldb';// 本地 mongodb 数据库
const testurl = 'mongodb://localhost:27017/';
const testdbname = 'esplapitest';
const atlasuri = "mongodb+srv://admin:ESPL888espl@cluster0-edjgm.mongodb.net/test?authSource=admin&replicaSet=Cluster0-shard-0&readPreference=primary&appname=MongoDB%20Compass&ssl=true";
module.exports = {
  'adminsecret': 'ectivisecloudDBAuthCode:b64226daf467cede0ee882d04bcd0ade',//管理员用秘钥
  'imageSize_b': 700,
  'imageSize_m': 300,
  'imageSize_s': 100,

  'secret': 'ectivisecloudDBAuthCode:b84846daf467cede0ee462d04bcd0ade', // used when we create and verify JSON Web Tokens
  'url': url,
  'db': dbname,
  'database': url + dbname,
  'testurl': url,// 测试 mongodb 连接地址
  'testdb': dbname,// 测试 mongodb 数据库
  'testdatabase': testurl + testdbname,
  'atlasuri': atlasuri,

  'host': isDev ? 'dev.ectivisecloudDB.com' : 'api.ectivisecloudDB.com',
  'vhost': 'api.ectivisecloudDB.com',

  'isDev': isDev,
  'isTest': isTest,
}
